﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebNext.Domain.Entities
{
	public class Comment : Entity
	{
		public const int MaxAuthorLength = 200;
		public const int MaxContentLength = 1000;

		public virtual Entry Entry
		{
			get;
			set;
		}

		public virtual string Author
		{
			get;
			set;
		}

		public virtual string Content
		{
			get;
			set;
		}

		public virtual int Rank
		{
			get;
			set;
		}

		protected Comment()
		{
		}

		public Comment(Entry entry, string author, string content)
		{
			this.Entry = entry;
			this.Author = author;
			this.Content = content;
		}
	}
}
